package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/*
 *   Description agencyCertificationController
 *   @author zhangyan
 *   @time   2024/12/2
 */
@RestController("agencyCertificationController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构认证相关接口")
public class AgencyCertificationController {
    @Autowired
    private IAgencyCertificationService agencyCertificationService;


    @PostMapping
    @ApiOperation("机构认证提交")
    public void submit(@RequestBody AgencyCertificationAuditAddReqDTO dto) {
        agencyCertificationService.submit(dto);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("获取机构认证驳回原因")
    public Map getRejectReason() {
        return agencyCertificationService.getRejectReason();
    }
}
